
<%@page import="com.cn.dao.TiJianXiangmuDao"%>
<%@page import="com.cn.entity.TiJianxiangmu"%>
<%@page import="java.util.List"%>
<%@page import="com.cn.dao.DepartmentDao"%>
<%@page import="com.cn.entity.Department"%>



<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>北京医院</title>
</head>
<body>
<h4>体检项目修改修改</h4>
<form action="XiangmuUpdateAction" method="post">
<table>
<% TiJianxiangmu xm=null;
int xiangmuid=0;
String id=request.getParameter("xiangmuid");
if (id!=null){xiangmuid=Integer.parseInt(id);}
TiJianXiangmuDao ud=new TiJianXiangmuDao() ; 
xm=ud.scanOne(xiangmuid);
%>
<tr>
<td>项目名</td>
<td><input type="text" name="xiangmu.xiangmuming" value="<%=xm.getXiangmuming()%>"></td>
</tr>

<tr>
<td>价格</td>
<td><input type="text" name="xiangmu.price" value="<%=xm.getPrice()%>"></td>
</tr>



<tr>
<td>科室</td>
<td><select name="departmentname" >
<%DepartmentDao ded=new DepartmentDao();List<Department> li=ded.scanAll(); %>
<% for (int i=0;i<li.size();i++)

{ Department dep=li.get(i);  
%>
<option><%=dep.getDepartmentname()%></option>

<%} %>

</select>

</td>
</tr>



<tr>
<td><input type="hidden" name="xiangmu.xiangmuid"  value="<%=xm.getXiangmuid()%>"></td>
<td><input type="submit" value="修改"></td>
</tr>



</table>

</form>
</body>
</html>